1. processing and sorting machine project introduction
在本课中,我将向您介绍主要项目,我们将在整个课程中进行,这是一个相当大的项目,我们将彻底了解它。
In this lesson, I will introduce you to the main project and we will carry out throughout this course, it is quite a big project and we will get to it in a thorough way.
因此,在本课程的附件中,您将找到这个项目,这将是我们将为相当多的视频所做的所有工作的实际启动。
So in the attachment of the of this lesson, you will find this project and that will be the actual start up for all the work that we will do for quite a few videos.
注意,如果无法打开项目文件,则应打开包含所有库版本等的项目归档文件。
Note, if you are unable to open the project file, you should open the project archive file that carries out all the library's versions and so on.
因此,如果由于您的此版本与我的不同而遇到一些兼容性问题,您应该尝试使用项目存档文件。
So if you are having some compatibility issues because your this version is different from mine, you should try with the project archive file.
所以如果你打开这个项目,你实际上会在这里看到很多东西。
So if you open the project, you will actually see quite a few things over here.
这是我试图模拟的相当复杂的机器。
This is quite a complex machine that I am trying to simulate.
如果您打开此处,此可视化将成为您了解机器的主要视觉帮助。
And if you open here, this visualization will be your main visual help to understand the machine.
正如您所看到的,发生了很多事情,我将在整个视频中向您解释它们。
So as you can see, there is quite a lot of things going on and I will actually explain them to you throughout this video.
首先,我们首先看到我们有三个实际的全局变量,它们实际上是为您构建的,以便划分您在开发程序时需要使用的全局变量的用途。
So first of all, we will start by seeing here that we have three actual, uh, global variables that are actually built for you in order to divide the purpose of the global variables that you need to use in your developing your program.
所以在这里,您是该位置的按钮的全局变量列表。
So over here, you are a global variable list for the buttons here in the position.
您实际上可以看到这些按钮。
You can actually see these buttons.
您有一个用于启动机器的启动按钮,一个用于停止机器的按钮,并按住一个用于实际暂停机器运行的按钮,以便稍后能够恢复机器的运行紧急按钮和重置按钮,用于将某些事件重置为机器的其他问题和故障。
You have a start button that should be used to start the machine, the button that should be used to stop it and hold the button that should be used to actually pause the the functioning of the machine in order to be able to resume it later on an emergency button and a reset button to reset some event to other problems and faults for the machine.
同样在这里,您可以看到我们有另一个可视化。
Also over here, you can see that we have another visualization.
这将在课程的后面部分用到。
This will be used much later on in the course.
正如您所看到的,这是一个包含许多不同按钮的可视化。
And as you can see, this is a visualization with many different buttons.
该位置用于模拟机器中传感器和执行器的一些故障。
And this position is used to simulate some faults on sensors and actuators in the machine.
通过这种方式,您将能够模拟故障并查看您的软件是否适合您的 p.l.c.。
In this way, you shall be able to simulate the faults and see if your software if your p.l.c.
程序能够检测到这种跌倒。
program is able to detect this falls.
然后这里我们有两个全局变量。
Then over here we have two global variables.
一种用于机器中使用的所有执行器,另一种用于机器中存在的所有传感器。
One, for all the actuators that are used in the machine and one for all the sensors that are present in the machine.
你可以看到有相当多的设备、传感器和执行器。
You can see that there are quite a few devices and sensors and actuators.
所以我会尽力向您解释这台机器的流程是什么。
So I will try to explain you what is the flow of this machine.
因此,如果我们在这里上网并看到更清晰的可视化,您就会看到需要从此处左侧的初始点运输的产品的实际流量,以及需要执行以下操作的不同站点实际产品上的处理有所不同。
So if we go online over here and see a clearer visualization here, you have an actual flow in of products that need to be transported from the initial point that is here on the left of over here with different stations that will need to carry out the different processing on the on the on the actual products.
所以在这里你可以看到它的产品处于 feed 启用状态。
So over here you have it products in feed enable.
这实际上是一个执行器,如果您是列表中的第一个执行器。
That is actually an actuator, if you that is this first actuator over here in the list.
通过启用这个布尔变量,您将允许产品出现在机器的开头。
By enabling this, this boolean variable, you will allow products to to appear at the beginning of your machine.
所以现在该值是假的并且没有产品出现。
So right now the the the value is false and there are no products coming.
而当这个值等于true时,有些产品就会出现在这个位置。
And when this value is equal to true, some products will appear in this position.
实际上,在这个Beston上,你可以用这个Beston将产品向前移动,然后再移动实际的执行器,我将以这种方式打开它。
Up actually on this Beston with this Beston that you are able to move the product forward and the actual actuator with a second, I will open it in this way.
为了看到执行器和机器。
In order to see both the actuators and the machine.
这里你有一个单一的驱动,一个单一的布尔变量来移动这个人,你实际上有一个传感器,它会告诉你活塞是否处于这个后面的位置,然后你还有另外两个传感器,一个会告诉你产品是否处于这个位置。在这里,另一个是如果我们的产品被活塞拖动并处于其最终位置,我可以开始移动活塞,你会看到这变得错误,而这两者都不是真实的,因为现在我们没有产品。
Here you have a single actuation, a single boolean variables to move this person, and you have actually a sensor that will tell you if the piston is in this back position and then you have other two sensors, one that will tell you if a product is present over here, and another one is if our product as being dragged by the piston and on its end position right now, I can start moving the piston and you will see this becoming false and neither of this becoming true because now we have no products.
然后我们只有一秒钟的时间。
Then we have just a second.
我还将尝试将传感器放在这里,以便您可以实际看到传感器的值。
I will also try to here have the sensors down here so you can actually see the values of the sensors here.
我们还有另一个设备,实际上就是这个杠杆。
We have another device that is actually this lever.
它可以沿该轴向上旋转,并且您有一个称为水平仪的执行器,对吧?
That can rotate up on this axis and you have a single actuators that is called the level, right?
如果你设置它,你会看到水平仪会移动。
And if you set it through, you will see that the level will move.
是的,如果你这么说是为了迫使自由派左转。
Right, and if you said it to force the liberal move left.
在这里,您还有一个气动夹具,称为水平夹具,用于抓取水平面下方的产品。
Over here, you have also a pneumatic gripper that is called a level gripper that is used to grab products that are beneath the level.
你实际上可以在这个上看到它。
You can see it actually on this.
此处显示为红色,表示夹具未抓取任何产品。
Displayed over here with the red, meaning that the gripper is not is not grabbing any product.
绿色表示夹具已启用。
And green means that the gripper is enabled.
在这里,左边有一个杠杆,右边有一个传感器,它们会告诉你杠杆在哪里,实际上杠杆在哪里,那么在这里,我们有一部电梯。
And over here, you have a lever left and the right sensor that will tell you if the lever where is the where actually is the lever then over here you we have an elevator.
必须有一个使电梯向上移动的驱动器,一个使电梯向下移动的驱动器。
There has to actuation one to move the elevator up, the one to move the elevator down.
所以如果我设置了,我们就向上移动得越好,如果我设置为 false,它就会停止。
So if I set up, the better we move up, if I set it to false, it will stop.
如果我将其设置为向下移动电梯,它就会回到那里。
If I set it the move elevator down through, it will get back down there.
你是这里的传感器,那里的电梯会告诉你另一部电梯是否处于较低位置,而电梯向上传感器会告诉你电梯是否已到达其较高位置。
And you are the sensor here, elevator down there will tell you if the other elevator is at its lower position and an elevator up sensor that will tell you if the elevator has reached its upper position.
我们这里还有一个传感器,它会告诉您电梯上是否有产品,您需要小心,因为如您所见,如果我移动梯子。
We also have a sensor over here that will tell you if there is a product on the elevator actually here, you need to be careful because as you can see, if I move the ladder.
在这里,电梯无法向上移动,因此需要在我们的软件中处理。
Over here, the elevator cannot move up, so this needs to be handled in our software.
如果升降机上有产品,且升降机到达上方位置,产品将自动放置。
If there is a product on the elevator and the elevator reaches its upper position, the product will be automatically placed.
在这个平台上,这将被称为钻井站,当产品在这里时,钻井站传感器上的该产品将检测到这一点,我们的钻头实际上应该具有真正的驱动。
Up on this platform there, and this will be this is called the drilling station, and this will be detected by this product on drilling stations sensor when a product is over here, we have this drill that shall actually that that has true actuation.
想要以类似于电梯的方式向上或向下移动,有两个传感器会告诉您钻头是否向上或向下移动,这样,您可以看到钻头向下移动一点,向上移动。
Want to move up or down in a similar way of the elevator with two sensors that will tell you if the drill is up or down in this way, you can see the drill moving down a little, moving up.
您在这里的目标是将钻头向下移动,并实际移动钻头活动钻头以在产品上钻一个孔。
And your goal over here is to move the drill down and actually move the drill activity drill to carry out a hole in the product.
您应在钻头向下移动时启动钻头激活。
You shall start the drill activation while the drill is moving down.
然后当产品是 Kavita 时,抱歉,我错了。
Then when the product is Kavita, sorry, I'm the wrong one.
当产品被雕刻时,您应该将钻头向上移动,在这里我们有一个激活,它将向前推动产品,您稍后将在产品中以这种方式实际看到它。
When the product is carved, you shall move the drill back up and over here we have an activation there will push the product forward and you will actually see it in this way later on in the product.
最后,我们将到达这一点,这一点是由表条目上的产品检测到的。
At the end, we will reach this point, this in this point that is detected by product on table entry.
这是带有驱动装置的旋转台。
This is the rotating table with the actuation.
一个用于实际旋转工作台,一个用于激活放置在该工作台上的夹具。
One is used to actually rotate the table and one is used to activate the gripper that is placed on this table.
夹具以这种方式被激活。
The gripper is activated in this way.
在这一点上,我们实际上有一个颜色传感器,可以实际检测产品颜色。
And in this point, we actually have a color sensor that will actually detect the product color.
我没有说过的一件事是,产品是在这里诞生的,它们可能是红色的,也可能是蓝色的。
One thing that I have not said that products was born over here and they may be either red or blue.
该颜色传感器变量将告诉您产品是红色还是蓝色。
This color sensor variable will tell you if the product is either red or blue.
在这里,我们有两个不同的 Reles 站,您需要在其中发布与您看到的实际颜色相对应的产品。
And over here we have two different Reles stations where you need to release the product corresponding to the actual color that you see.
我们有一个蓝色的摸索站和红色的包裹站,我们有传感器可以告诉您桌子在哪里。
We have a blue grokking station and the red wrapping station and we have sensors that will tell you where the table is.
您这里的桌子位于接送位置。
You have here the table at pick up position.
就是这个,穿过我们位置的蓝色桌子,在红岩位置的桌子。
That is this one, the table at the blue through our position over here in the table at the Red Rock position.
所以通过移动桌子,实际上是相当快的。
So by moving the table, actually it is quite fast.
我不知道,我们能否看到它,因为在这里你实际上可能会看到它不到一秒钟。
I don't know, we will be able to see it because here you may see it for actually a fraction of a second.
蓝色或红色,只是一瞬间,它们就变成了真实。
The blue or the red, just for a moment, they become true.
这实际上就在这里。
This is actually here.
看得出来我及时制止了。
I can see that I stopped it in time.
这实际上很难手工完成,但是你们的政策应该能够做到,我会尝试将其移回这里。
It is actually hard to do by hand, but your policies shall be able to do it and I will try to move it back over here.
在这里,我是一个小军官。
Here, I'm a little bit officer.
你没有看到传感器穿过。
You didn't see the sensor be coming through.
所以你的目的实际上是抱歉地结束这一切。
And so your purpose is actually to end all of this in sorry.
而且搬错了。
And moving the wrong one.
因为实际上是在中途所以将电梯向下移动是为了以无缝的方式结束所有这个过程。
Moving the elevator down because it is actually midway is to end all of this process in a seamless way.
因此,如果我启用产品字段,您实际上会在几秒钟后看到产品生成,以便我可以向前移动产品。
So if I enable the product field, you will actually see after a few seconds a product spawning so I can move the product forward.
在移动过程中,Beston 背部启用了抓握器和移动传递,对吧?
In the move, the Beston back enabled the griper and move deliver, right?
抱歉,嗯,我会释放苦力怕动作,向左传送。
I'm sorry, um, I shall release the Creeper Move, deliver left.
将电梯向上移动,直到我们到达钻井站,然后将电梯向下移动。
Move the elevator up until we are on the drilling station, move the elevator back down.
开始钻孔设备,一段时间后向下钻孔,您会看到产品正在被雕刻。
Started the drill equitation and the drill down after a while, you will see that the product is being carved.
你可以阻止地震、钻探并将其向上移动。
You can stop the earthquakes, the drill and move it up.
然后您应使用 R 驱动装置向前移动产品。
Then you shall use the R actuation to move the product forward.
在这里,抗议者达到了这一点,根据这里传感器的值,这是错误的。
Here, the protesters reached this point and according to the value of the sensor here, it is false.
我们检测到该产品是红色的。
We are detecting that the product is red.
然后我们将它移动,移动并将其放到正确的位置。
Then we shall move it, move and drop it on the correct position.
因此,您应该启用桌子夹具并开始移动桌子,然后您会听到,我无法将其停在正确的位置,但是当您到达红色位置时。
So you should enable the table gripper and start moving the table and then you shall hear, I'm not able to stop it at the correct position, but when you get to the red one.
所以在这里,在这里你应该释放夹具。
So over here, here you shall release the gripper.
然后你应对其他产品做同样的事情。
And then you shall do the same things for the other products.
因此,在这个视频中,我在下一个视频中向您展示了机器的基本单一功能。
So this is in this video I showed you the basic single functionalities of the machine in the next video.
我们将尝试使用简单的棒机来开发这个循环,我已经以简单的方式向您展示了这一循环。
We'll try to develop this cycle that I've shown you in a naive way by using a simple stick machine.
如果您找不到状态机,那么我们将逐步以更加模块化和结构化的方式构建该项目。
If you don't find the state machine and then we will will we will gradually move forward into building this project in a more modular and structured way possible.
我们将介绍几种自动化、自动机器设计软件模式,并将了解如何将这些概念应用到其他类型的机器上。
We will introduce several automation, automatic machine design patterns for software and we will see how to apply these concepts onto other types of machines.